package bagu.juc.lock;

public class LockOrderMain {
    public static void main(String[] args) {
        LockOrderDemo demo = new LockOrderDemo();
        Runnable task = demo::criticalSection;

        Thread t1 = new Thread(task);
        Thread t2 = new Thread(task);
        Thread t3 = new Thread(task);

        t1.start();
        t2.start();
        t3.start();
    }
}
